import sys
sys.encoding = "utf8"
class Book(object):
    #书籍信息#
    def __init__(self,mainInfo,downLoadUrl,bookName):
        self.mainInfo = mainInfo;
        self.downLoadUrl = downLoadUrl;
        self.bookName = bookName;
        self.downLoadInfos = [];
    def addDownLoadUrl(self,downloadInfo):
        self.downLoadInfos.append(downloadInfo);
    def print_book_info(self):
        print ("bookName :%s" % (self.bookName));
class DownLoadInfo(object):
    #下载信息#
    def __init__(self,downUrl,downName):
        self.downUrl = downUrl;
        self.downName = downName;
    def print_down_info(self):
        print ("downLoad %s - %s" % (self.downUrl,self.downName));
